﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Linq;
namespace ServiceNews.DataTransferObjectMapper
{
    [DataContract(Name = "NewsLogDto", Namespace = "http://www.yourcompany.com/types/")]
    public class NewsLogDto
    {
        public NewsLogDto()
        {
            //Version = _versionDefault;
        }
        public NewsLogDto(long id, string Title, string content, string iP, string location, string device, string createdBy, DateTime? createdDate, string type)
            : this()
        {

            Id = id;
            Title = Title;
            Content = content;
            IP = iP;
            Location = location;
            Device = device;
            CreatedBy = createdBy;
            CreatedDate = createdDate;
            Type = type;
        }
        ///  <summary>
        /// Version number. Used in optimistic concurrency decisions.
        ///  </summary>
        [DataMember]
        public string Version { get; set; }

        [DataMember]
        public long Id { get; set; }

        [DataMember]
        public string Title { get; set; }

        [DataMember]
        public string Content { get; set; }

        [DataMember]
        public string IP { get; set; }

        [DataMember]
        public string Location { get; set; }

        [DataMember]
        public string Device { get; set; }

        [DataMember]
        public string CreatedBy { get; set; }

        [DataMember]
        public DateTime? CreatedDate { get; set; }

        [DataMember]
        public string Type { get; set; }

    }
}
